package com.telecom.cms.service;

import java.util.List;
import com.telecom.cms.dao.CampPromDAO;
import com.telecom.cms.dto.CampProm;

public class CampPromMgr {
   
	public void save(CampProm campcamp){
		(new CampPromDAO()).insert(campcamp);
	}
	
	public void  delete(CampProm campcamp){
		(new CampPromDAO()).delete(campcamp);
	}
	
	public List findall(String latnid){
		List result=(new CampPromDAO()).findAll(latnid);
		return result;
	}
	
	public CampProm findbyid(String campid){
		CampProm result=(new CampPromDAO()).findById(campid);
		return result;
	}
	
}
